home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 19 / Mac Magazin and MacEasy Magazine CD - Issue 19.iso / Wissenschaft & Technik / Alpha / Help / Alpha Commands next >
Text File  |  1996-02-04  |  36KB  |  675 lines

  1. ==============================================================================
  2. = Alpha Commands
  3. ==============================================================================
  4.  
  5. In this list of routines, text between '<' and '>' is a placeholder for a 
  6. required parameter, text between '[' and ']' is a placeholder for an 
  7. optional parameter, and the '|' signifies a choice of two or more 
  8. alternatives.  A '+' signifies that the previous symbol can be present one 
  9. or more times, while a '*" means zero or more times.  Some commands have no 
  10. parameters, and are only expected to be called interactively.
  11.  
  12.  
  13.  
  14. The following are Alpha-specific tcl routines:
  15.  
  16. • abortEm - aborts whatever is currently happening
  17. • addMenuItem [-m] [-l <meta-characters>] <menu name> <item name> - Convert
  18.   item to menu form and add to specified menu. If '-m' specified, menu 
  19.   form conversion not done. The '-l' option allows you to use menu meta 
  20.   characters as text of menu items. If the '-l' option is used, the 
  21.   <meta-characters> string is interpreted for menu item attributes, and 
  22.   meta-characters in <item name> are included in the menu item text 
  23.   literally. For example: 
  24.       addMenuItem -m -l "/B" "Hello/C" 
  25.   would appear as the text "Hello/C" in the menu, and have "B" as its 
  26.   command equivalent.
  27. • addDef <var> <val> - Permanently save an association between the var 
  28.   'var' and 'val'. 'addDef' and 'addArrDef' are now the sanctioned way to 
  29.   save values between sessions. Also see 'removeDef' and 'removeArrDef'.
  30. • addArrDef <var> <field> <val> - Permanently save an association between 
  31.   the var var(field) and 'val'.
  32. • AEBuild [<flags>] <app (name|creator)> <aesuite> <aeevent> [<event parameters>]*  -
  33.   Build and send an apple-event. 'AEBuild' is apple's code of the same 
  34.   name. Each "event parameter" is two parameters, a parameter type and 
  35.   the data for the parameter. See the AEBuild doc for more details, 
  36.   :Tcl:SystemCode:think.tcl for examples. The flags are '-r' (wait for reply), 
  37.   '-q' (queue reply, in which case 'handleReply' (in appleEvents.tcl) is 
  38.   called with the reply as a parameter, and '-t <timeout>' specifies the 
  39.   timeout in ticks.
  40. • alertnote message_string
  41.   This command will display message_string in a standard Macintosh alert box.
  42. • alphaHelp - display Alpha help.
  43. • ascii (see bindings).
  44. • askyesno [-c] prompt
  45.   This command will display a Macintosh alert box with 'prompt' displayed
  46.   with the push buttons Yes and No. The command will return the 
  47.   string "yes" or "no". The '-c' flag specifies that a cancel button be 
  48.   used as well.
  49. • backColor - set background color
  50. • backSpace - delete selection, or a single char if no selection.
  51. • backwardChar - moves insertion one char back
  52. • backwardCharSelect - extends selection one char back
  53. • backwardDeleteWord - deletes previous word
  54. • backwardWord - moves insertion one word back
  55. • balance - selects smallest set of parens, braces, or 
  56.   brackets that encloses the current selection
  57. • beep
  58. • beginningBufferSelect - extend selection to the 
  59.   beginning of the buffer
  60. • beginningLineSelect - extend selection to the 
  61.   beginning of the line
  62. • beginningOfBuffer - move insertion to the beginning 
  63.   of the buffer
  64. • beginningOfLine - move insertion to the beginning of 
  65.   the line
  66. • bind  (see bindings)
  67. • blink <pos> - blink cursor at 'pos'
  68. • breakIntoLines <string> - return 'string' with 
  69.   carriage returns and spaces inserted to satisfy 
  70.   'leftFillColumn' and 'fillColumn' variables.
  71. • bringToFront <winName> - Bring named window to front.
  72. • buttonAlert <prompt> [<button>…] - Create a dialog w/ the specified 
  73.   buttons, returning the one selected.
  74. • capitalizeRegion - capitalize all words in selected 
  75.   region 
  76. • capitalizeWord - capitalize word
  77. • cd [directory]
  78.   This command will set the current working directory to "directory". The directory 
  79.   argument may or may not end with a colon. The working directory is the directory 
  80.   in which file names that contain no colons (folders) will be located with file related 
  81.   commands. No argument means Alpha's home directory.
  82. • centerRedraw - redraw window with current line in 
  83.   the middle.
  84. • clear - clear selected text
  85. • closeAll - close all windows
  86. • colors <fore red> <fore green> <fore blue> <back red> <back green> <back blue>
  87. • colorTriple [<prompt>] [<red> <green> <blue>] - Prompts user to choose 
  88.   color. If specified, the input RGB value is used as the initial color on 
  89.   the colorpicker.
  90. • copy - copy region
  91. • cp <fromName>+ <toName>
  92.   This command will copy the file fromName and name the new file toName, 
  93.   overwriting any existing file. This command copies both data forks, and 
  94.   the Finder information. 
  95. • createTagFile - searches all files in current file set 
  96.   and saves the locations of any function declarations
  97.   in a file called 'cTAGS'.
  98. • createTMark <name> <pos> - create a temporary 'mark' 
  99.   at location 'pos'. 
  100. • currentPosition - displays current and total bytes.
  101. • cut - deletes and saves region
  102. • decToHex - convert decimal number to hex.
  103. • deleteChar - delete char AFTER cursor
  104. • deleteMenuItem [-m] <menu name> <item name> - Convert item to menu form 
  105.   and delete from specified menu. If '-m' specified, menu form conversion 
  106.   not done. 
  107. • deleteModeBindings <mode> - Delete all bindings for specified mode.
  108. • deleteSelection - delete current position, don't save
  109. • deleteWord - delete word after cursor
  110. • describeBinding - display the binding of the next typed key sequence. 
  111. • deleteText <pos1> <pos2> - remove text between 'pos1' 
  112.   and 'pos2'
  113. • dialog [<-w width>|<-h height>|<-b title l t r b>|<-c title val l t r b>|
  114.             <-t text l t r b>|<-e text l t r b>|<-r text val l t r b>|
  115.             <-p l t r b>]+ 
  116.   Create and display a dialog.  '-w' and '-h' allow width and height of 
  117.   dialog window to be set.  '-b', '-c', '-r', '-t', '-e' and '-p' allow 
  118.   buttons, checkboxes, radio buttons, static text, editable text and gray 
  119.   outlines to be created, respectively.  All control types (except gray 
  120.   outlines) require specification of a title or text, together with left, 
  121.   top, right, and bottom coordinates.  Checkboxes and radioboxes have an 
  122.   additional parameter, the default value.  At least one button must be 
  123.   specified.  The return value is a list containing resulting values for 
  124.   all buttons, radioboxes, checkboxes, and editable textboxes (static text 
  125.   is ignored).  Buttons have value '1' if chosen, '0' otherwise.  The 
  126.   dialog box exits at the first button press.
  127.  
  128. • display [-w <win>] <pos> - move pos's line to top of screen.
  129. • displayMode <mode> - Up to four characters of the 'mode' string are 
  130.   displayed in the status line at the bottom of a window.
  131. • dosc [<-c 'sign' | -n appName>] [-k 'clas'] [-e 'evnt'] <-s string | -f fileName> [<-t timeout|-r>]
  132.   Send an AppleEvent, by default class 'misc', event 'dosc'.
  133.    -c 'sign' 
  134.            "sign" is a four-letter creator signature of a running application.
  135.    -n appName
  136.            "appName" is the name of a running application.
  137.    -k 'clas'
  138.            "clas" is a four-letter event class.
  139.    -e 'evnt'
  140.            "evnt" is a four-letter event class.
  141.    -s string
  142.            "string" is the text of a script to send to the other app.
  143.    -f fileName
  144.            "fileName" is the complete or relative pathname of a file the other 
  145.            application should execute.
  146.    -t timeout
  147.            "timeout" is the number of ticks Alpha should wait for a response. A 
  148.            timeout of "0" means wait forever.
  149.    -r
  150.            Do not wait for reply.
  151.    -q
  152.            Queue reply.
  153.            
  154.    If neither of the '-c' and '-n' options is chosen, the PPC Browser is 
  155.    used. Either '-s' or '-f' must be chosen. Thus, you can have "Alpha 
  156.    5.02" and "Alpha 5.02 Copy" sending Apple events to each other, or they 
  157.    can send events to a remote server such as Apple's ToolServer. 
  158.    "$HOME:Tcl:UserCode:createStuffitArchive.tcl" contains examples of 
  159.    controlling Stuffit Deluxe via this command.
  160. • downcaseRegion - changes all uppercase letters to 
  161.   lowercase in current region
  162. • downcaseWord - changes all uppercase letters to 
  163.   lowercase in current word
  164. • dumpColors - dump current foreground and background
  165.   colors into the current buffer in Alpha-readable
  166.   format.
  167. • dumpMacro - prompts for a name and then dumps a tcl proc representation 
  168.   of the current keyboard macro into the current window.
  169. • echo <string>* - echo the strings (used 
  170.   in shells).
  171. • edit [-r] [-m] [-w] [-g <t> <t> <w> <h>] <name> - Open a file in a new window. 
  172.   '-r' means open the file read-only. '-m' means omit the function titlebar 
  173.   menu and present only the marks titlebar menu, which is labeled with the 
  174.   contents of 'markLabel'. The '-g' option allows left and top coords to 
  175.   be specified, plus width, and height. All or none. '-w' allows you to
  176.   bypass the "Wrap" dialog for files with long rows.
  177. • enableMenuItem <menuName> <item text> <on|off> - Either enable or 
  178.   disable the menu item of user menu 'menuName' that has text '<item 
  179.   text>'. Note that unless the menu is not only created, but also already
  180.   inserted, this command has no effect. 
  181. • endBufferSelect - extend selection to the end of the 
  182.   buffer
  183. • endKeyboardMacro - stop recording keyboard macro
  184. • endLineSelect - extend selection to the end of line
  185. • endOfBuffer - move insertion to the end of the buffer
  186. • endOfLine - move insertion to the end of the line
  187. • enterSelection - use current selection for future searches.
  188. • eventHandler [class] [event] [proc] - Register 'proc' to handle the class 
  189.   and event specified. Class and event are each 4 char args. 'proc' takes 
  190.   a single argument that specifies the incoming event according to the 
  191.   syntax here. There is currently no provision for a reply.
  192. • exchangePointAndMark - exchange the current 'mark' 
  193.   w/ the current insertion point
  194. • execute - prompt user for a function or macro. The 
  195.   tab key acts as a "completion" command.
  196. • executeKeyboardMacro - execute the current keyboard 
  197.   macro
  198. • fileInfo - prompts for a file, and displays type, 
  199.   creator, sizes of both data and resource forks, last
  200.   modification time, and creation time
  201. • fileRemove - prompts for a file, and removes it
  202. • find - bring up the find dialog
  203. • findAgain - repeat search forward
  204. • findAgainBackward - repeat search backward
  205. • findFile - open a file in a new window
  206. • findInNextFile - search next file.
  207. • findTag - prompt user for a function name and attempt 
  208.   to use the file 'cTAGS' to locate the function's 
  209.   definition
  210. • forwardChar - move insertion one character forward
  211. • forwardCharSelect - extend selection one character 
  212.   forward
  213. • forwardWord - move insertion one word forward
  214. • freeMem - give a rough approximation of the current 
  215.   memory reserves of ALPHA
  216. • get_directory [-p <prompt>]
  217.   This command will display a standard Macintosh file dialog and request the user 
  218.   select a folder. The command will return the selected folder's full path name, or an 
  219.   empty string if the Cancel button was selected.
  220. • getAscii - displays the ASCII code for character at 
  221.   current insertion point
  222. • getChar - waits for a keystroke, returns ascii.
  223. • getColors - returns list of colors/hypertext for current document. 
  224.   Format is list of lists, each sublist consisting of file offset, color 
  225.   index, and possibly a hypertext command.
  226. • getfile <prompt>
  227.   This command will display an SFGetFile() and return the full path name of the 
  228.   selected file, or an empty string if CANCEL button was selected.
  229. • getFileInfo <file> <arr> - Given a file name, creates an array called 
  230.   'arr' in the current context, containing fields 'created', 'creator', 
  231.   'modified', 'type', 'datalen', and 'resourcelen'. 'created' and 
  232.   'modified' are in a form suitable for the command 'mtime'.
  233. • getGeometry [win] - return a TCL list containing the left 
  234.   edge of the current window, the top, the width, and height.
  235. • getline <prompt> <default>
  236.   This command will display a Macintosh alert box with prompt displayed, a 
  237.   text edit field with default initially in the field, and with the push 
  238.   buttons OK, Cancel.. The command will return the text entered into the 
  239.   text edit field by the user, or an empty string if the user selected the 
  240.   Cancel button. 
  241. • getMainDevice - return a list containing the left, top, right, and 
  242.   bottom of the rectangle defining the main device.
  243. • getMark - return the current mark.
  244. • getNamedMarks [-w <win>] [-n] - 
  245.   return list of all permanent marks in open files. Each
  246.   element of a list describes one mark as a sublist of the mark's name, 
  247.   the complete pathname of the mark's file, the position of the first 
  248.   character in the first line displayed, the current position, and the 
  249.   end of the selection if text is hilited, or the current position again 
  250.   if there is no hilited section. '-w' allows window name to be applied 
  251.   as filter, '-n' means only names will be returned.
  252. • getPathName - prompt the user with an SFGetFile dialog and return 
  253.   complete pathname.
  254. • getPos [-w <win>] - return the current insertion point
  255. • getScrap - returns system TEXT scrap.
  256. • getSelect - return the currently selected text, if 
  257.   any.
  258. • getText [-w <win>] <pos1> <pos2> - return the text between 'pos1' 
  259.   and 'pos2'. '-w' can be used to specify a window.
  260. • getTMarks - Return a list of temporary marks. Each item of the returned 
  261.   list is a sublist containing the mark name, the complete pathname of the 
  262.   mark, and the start and finish of the selection named by the mark. The 
  263.   following is an example of the result: 
  264.  
  265.     {{temp1 External:file.c 1312 1315} {temp2 Internal:it.h 111 111}} 
  266.  
  267. • getWinInfo [-w <win>] <arr> - Creates an array in current context 
  268.   containing info about either the current or a specified window. Array 
  269.   has fields 'state', 'platform', 'read-only', 'tabsize', 'split', 
  270.   'linesdisp' (num lines that can be seen in the window) and 'dirty'.
  271. • glob [-i] [-t <TYPE>] [-c <CRTR>]
  272.   The original glob provided by the UNIX version of tcl was not quite 
  273.   adequate for the more complex Macintosh file system. Issues such as 
  274.   invisible file handling, Finder type and creator filtering, and space 
  275.   handling in file names. Release 6 of tcl has dealt with the original 
  276.   problem with spaces in filenames, but the following options are provided 
  277.   to deal with additional Macintosh issues. 
  278.  
  279. Anyway, the new glob now takes several options. They are:
  280.     -i    This option causes glob to list invisible files also.
  281.     -t TYPE    This option causes glob to only list file with the 
  282.         indicated Finder file typeTYPE. This option may be 
  283.         used with the -c option.
  284.     -c CRTR    This option causes glob to only list file with the 
  285.         indicated Finder file creatorCRTR. This option may 
  286.         be used with the -t option.
  287.         Also note that the original glob would skip dot files
  288.         (i.e., file names the begin with a period) 
  289.         in the listing, unless the pattern began with a period.
  290.         Tickle extends this concept one step further on the
  291.         Macintosh, and skips spot files (i.e., file names that 
  292.         begin with '•'), unless the pattern starts with a spot.
  293. • goto <pos> - goto the position 'pos'.
  294. • gotoMark - goto named mark, use 'mark' in macros.
  295. • gotoTMark <name> - goto the temporary mark 'name'.
  296. • hexToDec <num> - hex to decimal conversion.
  297. • icon [-f <winName>] [-c|-o|-t|-q] [-g <h> <v>] - Having to do w/ 
  298.   iconifying windows. '-c' means close (iconify) window, '-o' open, '-t' 
  299.   toggle open/close, '-q' returns either a '1' for an iconified window or a 
  300.   '0' for an uniconified window, and '-g' moves the icon to horizontal 
  301.   position <h> and vertical position 'v'. Options are executed as they 
  302.   are parsed, so the '-f' option, if present, should always be first. 
  303. • icURL <URL> - passes arg to Internet Config, if present. Error if not 
  304.   present. 
  305. • icGetPref [<-t <type>] <pref name> - Gets preference from 
  306.   Internet Config. '-t' allows type to be set, '0' returns a string 
  307.   (default), '1' returns a path name, commonly used for helper apps. A 
  308.   <pref name> of 'all' returns all valid preferences.
  309. • icOpen - Opens Internet Config
  310. • insertAscii - prompts for an ASCII code and inserts
  311.   into text.
  312. • insertColorEscape <pos> <color ind> [hypertext func] - Create a color 
  313.   or style "point" for documentation purposes. Look at the file 
  314.   "docColors.tcl" for examples. The hypertext func is only used when the 
  315.   "point" is underline. See 'getColors' for info about the current file.
  316. • insertFile - prompts for a file name and inserts the
  317.   corresponding file into the current window. Not
  318.   undoable.
  319. • insertMenu <name> - insert the previously created user menu 'name' into 
  320.   the menuBar. 
  321. • insertPathName - present the user w/ a SFGetFIle dialog 
  322.   and paste the complete path-name of the chosen file
  323.   into the current window
  324. • insertText [-w <win name>] <text>* - Insert 'text' at the current 
  325.   insertion point.
  326. • insertToTop - make the line that the insertion point 
  327.   is on the first line shown, and display the current 
  328.   line number along w/ the total number of lines in file
  329. • isearch - incremental search: searches w/o a dialog,
  330.   searches as you type the search pattern. Does not do
  331.   regular expression searches. 'matchWords' 
  332.   automatically set to false.
  333. • iterationCount - allows actions to be repeated many times. "control-u 44 
  334.   =" inserts 44 '='s into current window.  Also can be used to execute any 
  335.   function or macro (including the keyboard macro) many times.  Defaults to 
  336.   4.
  337. • jumpToRegister - prompts for a single char, and then jumpts to 
  338.   temporary mark of that name created by 'pointToRegister'.
  339. • keyAscii - insert ascii representation (in decimal)
  340.   of the keydown event, plus a modifier string, if 
  341.   necessary.
  342. • keyCode - insert the key code along w/ a string 
  343.   representing and modifiers into the current window.
  344.   Can be used to create bindings in 'Alphabits'.
  345. • killLine - kill text from insertion point to the end 
  346.   of the line. If the line has no text, delete the line 
  347.   and move succeeding lines up one.
  348. • killWindow - kill current window
  349. • largestPrefix <list> - Returns the longest prefix contained in all 
  350.   strings of 'list'.
  351. • launch -f <name> - launch the named app into the background. Note that 
  352.   for some yet unexplained reason, some applications (MicroSoft Word) 
  353.   won't launch completely in the background. 'launch'ing such 
  354.   applications won't insert the application into any system menu that 
  355.   specifies running applications (although "About the Finder..." will 
  356.   list it. The only way to get to such an app is through Alpha's 
  357.   'switchTo', after which the application will finish launching. The '-f' 
  358.   option gets around this by launching the application in the foreground 
  359.   instead.
  360. • lineStart <pos> - return the position of the start of
  361.   the line 'pos' is on.
  362. • listBindings - list all current bindings.
  363. • listpick [-p <prompt>] [-l] [-L <def list>] <list>
  364.   This command will display a dialog with the list displayed in a List Manager 
  365.   list. If the user presses the Cancel button, an empty string is returned. If 
  366.   the user selects the Open button, or double clicks an item in the list, that 
  367.   item will be returned. If '-l' is specified, than the return is a list of 
  368.   items.
  369. • load - loads hilited text, or entire window if 
  370.   nothing is hilited. 'load'ing means that whatever 
  371.   bindings or macro definitions are present in the 
  372.   loaded text take effect
  373. • lookAt [-w <name>] <pos> - return the 'pos'th character of the 
  374.   current file, or the file named by <name> if the '-w' option is specified.
  375. • markHilite - This is the 'Hilite' from the 'Edit'
  376.   menu. If there is a currently hilited selection, the 
  377.   selection is unhilited, leaving the mark and the 
  378.   insertion point around the old selection. If there 
  379.   is not a selection, the region between the insertion 
  380.   point and the mark is selected.
  381. • markMenuItem [-m] <menuName> <item text> <on|off> [<mark char>] - Either mark or unmark
  382.   the menu item of user menu 'menuName' that has text '<item text>'. 
  383.   Note that unless the menu is not only created, but also already
  384.   inserted, this command has no effect. 
  385. • matchBrace - moves the insertion point to the 
  386.   character that matches the character after the current 
  387.   insertion point
  388. • matchIt <brace char> <pos> - Return pos of matching brace. Recognizes 
  389.   parenthesis, square brackets, and curly braces.
  390. • maxPos [-w <win>] - returns the number of characters in the front
  391.   window.
  392. • menu [-s] [-n <name>] [-i <num] [-m] [-M <mode>] [-p <procname>] <list of menu items> - 
  393.   Defines a new menu named 'name' (if provided w/ '-n' option). The menu is not 
  394.   yet inserted into the menubar. The menu commands may be nested for 
  395.   heirarchical menus, see 'AlphaBits.tcl' for examples. Alpha massages the 
  396.   function names to make them look better in the menus. 
  397.   '-s'            Use system menu definition proc (faster).
  398.   '-n <num>'    Resource id of icon suite to use for menu title. 'ics#' 
  399.                 is the only resource that is really necessary.
  400.   '-n <name>'    Name the menu. Not necessary for submenus.
  401.   '-m'            No menu form. If not supplied, each menu item is split into 
  402.                   words at each capitalized letter.
  403.   '-p <name>'     The tcl proc named by 'name' is called w/ the menu's name
  404.                   and the item's contents when the item is chosen.
  405.   '-M <mode>'    Specifies that any bindings created by the menu are 
  406.                   specific to a given mode. This is important because mode-specific
  407.                   bindings over-ride global bindings.
  408. • message <string> - prints 'string' on the status line.
  409. • mkdir <name> - creates a directory (folder) named 
  410.   'name' in the current directory.
  411. • mousePos - Returns list <row,col> of mouse position, if the mouse is 
  412.   currently over the active window. Otherwise, return error (catch w/ 
  413.   'catch').
  414. • moveInsertionHere [-last] - move the insertion point to the 
  415.   first (or last) line displayed
  416. • moveFile <fromName> <toName>
  417.   This command will move the file fromName to toName, overwriting any 
  418.   existing file. The move can not be made across volume (disk drives) 
  419.   boundaries. 
  420. • moveWin [win name] <left> <top> - moves current or specified window. 
  421.   The window name can be "StatusWin".
  422. • mtime <time> [long|short|abbrev]
  423.   Returns a date and time string using the Macintosh International Utilities. The 
  424.   long/short/abbrev specification corresponds to the date. These are the following 
  425.   formats:
  426.     short        3/16/92 9:20:46 PM
  427.     abbrev    Mon, Mar 16, 1992 9:20:49 PM
  428.     long        Monday, March 16, 1992 9:20:43 PM
  429.   The returned value actually is in the form of a list. To get text as 
  430.   above, run the result through 'join', as in "join [mtime [now] short]".
  431. • new [-g <l> <t> <w> <h>] [-n <name>] - opens an untitled window. Can optionally 
  432.   provide left and top coordinates, plus width and height. All or none.
  433. • nextLine - move insertion point to next line
  434. • nextLineSelect - extend selection to the next line
  435. • nextLineStart <pos> - return the position of the start 
  436.   of the next line after position 'pos'.
  437. • nextSentence - go to next sentence ("fill.tcl").
  438. • nextWindow - select next window
  439. • now
  440.   Returns the current time as Macintosh seconds. This is the number of seconds that 
  441.   have elapsed since Midnight Jan 1, 1904.
  442. • oneSpace - converts whitespace surrounding insertion
  443.   into a single space.
  444. • openLine - insert a new line following the current 
  445.   one and move the insertion point to it
  446. • otherPane - If window is split, select the other pane.
  447. • pageBack - display prev screenful, move the
  448.   insertion point if 'moveInsertion' enabled
  449. • pageForward - display next screenful, move the
  450.   insertion point if 'moveInsertion' enabled
  451. • pageSetup - display the printing PageSetup dialog.
  452. • paste - insert the last chunk of text created by 'cut' 
  453.   or 'copy'
  454. • pointToRegister - prompts for a single character, and then assigns a 
  455.   temporary mark of that name to the current insertion point. Point can 
  456.   be jumped to via 'jumpToRegister'.
  457. • posToRowCol <pos> - converts from absolute position to row, col.
  458. • prefixChar - used to further modify the next keystroke 
  459.   combination, in the same manner as using the shift key 
  460.   in the next keystroke
  461. • previousLine - move insertion point to the previous 
  462.   line
  463. • prevLineSelect - extend selection to the previous line
  464. • prevSentence - go to previous sentence ("fill.tcl").
  465. • prevWindow - select previous window
  466. • print - print front window
  467. • processes - returns info of active processes. A list of lists, each 
  468.   sublist contain a file-name, an application signature, the application 
  469.   memory size, and the number of ticks the application has been active.
  470. • prompt <prompt> <default> [<name> <menu item>*] - prompt dialog to 
  471.   the user with a prompt string and a default value. The prompt dialog can 
  472.   optionally include a popup menu specified by 'name' and the succeeding 
  473.   strings. Selection of the popup menu items inserts the item text into the 
  474.   editable dialog item. 'Prompt' returns the value of the editable item. 
  475.   If the 'Cancel' button is selected, the tcl returns an error and your 
  476.   script will be stopped unless you execute the command from 'catch'.
  477. • putfile <prompt> <original>
  478.   This command will display an SFPutFile() and return the full path name of the 
  479.   selected file, or an empty string if CANCEL button was selected. Original is the 
  480.   default name displayed for the user.
  481. • putScrap [<string>]+ - Concatenate strings together into the system 
  482.   scrap. The scrap can be appended to through calls of the form 'putScrap 
  483.   [getScrap] " another word"'.
  484. • pwd
  485.   This command will return the current working directory, ending in a colon.
  486. • quit - quits ALPHA
  487. • rectMarkHilite - creates a rectangular selection 
  488.   between the mark and the insertion point.
  489. • redo - redo the next action that has been undone but 
  490.   not redone
  491. • regModeKeywords [options] <mode> <keyword list> - Set keywords and comments that 
  492.   Alpha can recognize to color them. Specifically, in mode <mode>, every 
  493.   keyword specified in the list is colored non-black (blue, by default). 
  494.   Comments, if specified by '-e' or '-b' below, are colored red by defualt.
  495.     -a                                Keywords will be *added* to existing mode
  496.                                     keywords. The new keywords can be a different
  497.                                     color than older keywords. This flag can also be
  498.                                     used to modify other attributes, but it cannot be
  499.                                     used to modify colors of existing keywords.
  500.     -m <c>                            Specify a magic character. Every word beginning with the 
  501.                                     magic character is a keyword.
  502.     -e <commentstr>                    Specify a string that begins comments that last to 
  503.                                     the end of the line. 
  504.     -b <comment beg> <comment end>    Specify a pair of strings that bracket a 
  505.                                     comment.
  506.     -c <color>                        Comment color.
  507.     -k <color>                        Keyword color.
  508.     -s <color>                        String color. Alpha can color single-line
  509.                                     strings only, using the simple heuristic
  510.                                     of assuming the first two double quotes
  511.                                     constitute a string. 
  512.     -i <char>                        Specify a character to display differently.
  513.                                     Commonly used for curly braces, etc.
  514.     -I <color>                        Color of above characters.
  515.     Keywords must be less than 20 characters long.
  516. • removeArrDef <var> <field> - Remove the pernament definition of 
  517.  'var(field)'. See 'addDef' and 'addArrDef'.
  518. • removeDef <var> - Remove the permanent definition of 'var'.
  519. • removeFile <fileName>
  520.   This command will delete the file or folder 'fileName'.
  521. • removeMark [-all]|[[-n <mark name] [-w <specname>]]- allows marks to be 
  522.   removed. If no options are specified, it's interactive.
  523. • removeMenu <name> - remove menu 'name' from menubar, except those 
  524.   specified by previous 'makeMenuPermanent' calls.
  525. • removeTMark <name> - remove temporary mark.
  526. • replace - replace the current selection
  527. • replaceAll - replace all further occurrences in the current file.
  528. • replace&FindAgain - replace the current selection and find next 
  529.   occurrence.
  530. • replaceString [<str>] - specifies replacement string. Returns current 
  531.   replacement string if no arg.
  532. • replaceText <pos1> <pos2> [text]+ - replaces the text
  533.   between 'pos1' and 'pos2' with 'text', where 'text' can be any number 
  534.   of arguments. Leaves insertion at end, mark at beginning of inserted 
  535.   text. 
  536. • restoreVars - restore variables to saved state, 
  537.   see 'saveVars'
  538. • revert - revert the file to its last saved version
  539. • rowColToPos [-w <win>] <row> <col> - converts to abosolute position.
  540.   Accepts optional -w parameter that allows window to be specified.
  541. • rsearch - reverse incremental search, see 'isearch'.
  542. • save - save current window
  543. • saveAs [def name] - save current window with new name. Optionally takes 
  544.   a default filename. Returns complete path of saved file, if ok hit, 
  545.   otherwise TCL_ERROR returned.
  546. • saveVars - save variable state, see 'restoreVars'
  547. • scrollDownLine - same action as that which occurs when 
  548.   the down arrow in the vertical scrollbar is selected
  549. • scrollLeftCol - same action as that which occurs when
  550.   the left arrow in the horizontal scrollbar is selected
  551. • scrollRightCol - same action as that which occurs when
  552.   the right arrow in the horizontal scrollbar is 
  553.   selected
  554. • scrollUpLine - same action as that which occurs when 
  555.   the up arrow in the vertical scrollbar is selected
  556. • search  [options…] <pattern> <pos> - 
  557.   -f <num>        - go forward?
  558.   -r <num>        - regular expression?
  559.   -s            - save previous search string and search flags.
  560.   -i <num>        - ignore case?
  561.   -m <num>        - match words?
  562.   -n            - failed search still returns TCL_OK, but null string.
  563.   -l <limit>    - limit on how search goes.
  564.   --             - next arg is the pattern.
  565.  
  566.   Searches for 'pattern' from position 'pos'.  If the search succeeds, a 
  567.   list of two positions will be returned.  The first is the starting position 
  568.   of the match, the second is one past the last character. If no '-n', 
  569.   TCL_ERROR returned.
  570. • searchString [<str>] - allows search string to be specified. Returns 
  571.   current searchstring if no arg.
  572. • select <pos1> <pos2> - selects the text between 'pos1' 
  573.   and 'pos2'.
  574. • selEnd [-w <win] - returns the end of the hilited selection, or 
  575.   the current insertion point if no text is selected.
  576. • sendOpenEvent [filler] <app name> <file name> - Send an open doc event to 
  577.   another currently running application. If 'filler' is noReply, then a 
  578.   reply is not requested. Otherwise, we wait for a reply and 'filler' is 
  579.   ignored. 
  580. • sendToBack <winName> - Sent named window to back.
  581. • setFileInfo <file> <field> [arg] - Allows some information to be set 
  582.   for files. Settable fields are 'modified', 'created', 'creator', and 
  583.   'type' all take an argument. 'resourcelen' can be set, but doesn't take 
  584.   an argument and just removes the resource fork.
  585. • setFontsTabs - bring up font and tab dialog
  586. • setMark - set the current mark to the insertion point
  587. • setNamedMark [name disp pos end] - set named mark. If optional arguments are 
  588.   present, the mark is created without prompting user. 'disp' is the 
  589.   character position of the start of the first line to be displayed, 
  590.   while 'pos' and 'end' bracket the text to be selected.
  591. • setWinInfo [-w <win>] <field> <arg> - Sets a piece of data about either 
  592.   the current or a specified window. Settable fields 'platform', 'state', 
  593.   'read-only', 'tabsize', 'dirty', and 'shell'. 'shell' means that dirty 
  594.   flag ignored and undo off.
  595. • shell - open the Tcl shell.
  596. • shiftLeftRegion - shifts the current region left a tab
  597. • shiftRightRegion - shift the current region right a 
  598.   tab
  599. • sizeWin [win name] <width> <height> - sets size of current or specified window.
  600.   The window name can be "StatusWin", although only the width can be 
  601.   changed.
  602. • sortMarks - sorts all marks of open windows, w/o 
  603.   setting the dirty flag. If the files are saved, the 
  604.   marks will be saved in alphabetical order.
  605. • spacesToTabs - convert spaces in selection to tabs
  606. • specToPathName [hex data] - given an FSSpec in hex form (as that 
  607.   returned by aebuild, for instance, see the definition of thinkFileName 
  608.   in :Tcl:SystemCode:think.tcl), return a complete pathname.
  609. • splitWindow [percent] - toggle having window split into two panes. 
  610.   Optional arg specifies percent of window to allocate to the first pane. 
  611. • startEscape - used to further modify the next 
  612.   keystroke combination, in the same manner as using the 
  613.   shift key in the next keystroke
  614. • startKeyboardMacro - start recording keyboard macro
  615. • statusPrompt <prompt> [<func>] - Prompt in the status window. If 'func' 
  616.   is present, call this routine at each key-press with the current 
  617.   contents of the status line and the key, insert into statusline 
  618.   whatever is returned by the func. Command-v pastes the current (<80 
  619.   char) clipboard contents on the status line.
  620. • substituteVars <string> - Takes a single string and
  621.   substitutes for all variables inside it, regardless of
  622.   depth. Unfortunately, you currently need to make 'global var' 
  623.   declarations in the proc you call this for each 'var' that might need 
  624.   to be substituted in the string (see proc.tcl for examples).
  625. • switchTo <appName> - Switches to application 'appName'.
  626. • tab - insert a tab
  627. • tabsToSpaces - convert tabs in selection to spaces.
  628. • tclFileCompletion - completes the previous word as a
  629.   file is in a shell window
  630. • tclResult - displays a dialog showing the result of 
  631.   the last TCL evaluation.
  632. • thinkReference <-t|-l> <think reference page> - Interact with Think 
  633.   Reference 2.0. '-t' retrieves a template without leaving Alpha, '-l' 
  634.   switches to Think Reference and goes to the specified page.
  635. • ticks
  636.   Returns the current TickCount. Ticks are 60ths of a seconds. TickCount is the 
  637.   number of ticks since the Macintosh was started. The command:
  638.         puts stdout [expr "[ticks] / 60"]
  639.   will print the number of seconds since the Macintosh was booted.
  640. • toggleScrollbar - toggles horizontal scrollbar on frontmost window. 
  641.   Will not succeed if scrollbar scrolled.
  642. • traceFunc on <funcName> <winName> Trace 'funcName', send output to 
  643.                                     'winName'. 
  644.   traceFunc off                        Turn function tracing off.
  645.   traceFunc status                    Display current tracing status.
  646. • unascii  (see bindings)
  647. • unbind  (see bindings)
  648. • undo - undo the last action that has not been undone
  649. • upcaseRegion - convert all lowercase letters to 
  650.   uppercase in the current region
  651. • upcaseWord - convert all lowercase letters to 
  652.   uppercase in the current word
  653. • version - Return string of the form "Alpha Version 5.31, Feb. 15, 1993".
  654. • watchCursor - turns the cursor into a a watch cursor.
  655. • wc <file>... - counts chars, words, lines of input files.
  656. • winNames [-f] - return a TCL list of all open windows. If '-f' option 
  657.   specified, complete pathnames are returned.
  658. • wrap - see the section on "Fill" routines.
  659. • wrapText
  660. • xtclcmd [-f filename] <cmdname> [argument_list]*
  661.   This command will load the external command cmdname and pass it the argument 
  662.   list [ cmdname argument_list... ]. External command are code resources of type 
  663.   XTCL. They may be located in the resource fork of the tickle application, or they 
  664.   may be located in a file named XTCL File in the same directory as the tickle 
  665.   application. If the optional -f filename is included, the external command will first 
  666.   be loaded from filename before the other two files.
  667.   See the appendix for a detailed description of the external tcl command interface. 
  668.   See the accompanying sources for an example of writing an XTCL.
  669. • yank - insert the last piece of deleted text of less
  670.   than 1k. Consecutive deletes are concatenated.
  671.   together.
  672. • zapInvisibles - removes chars < ascii 32, except for
  673.   LF's and CR's.
  674. • zoom - zooms the current window
  675.